<?

function insert_table($table="",$data="")
{
$field=(implode(",", array_keys($data)));
$isi_field=(implode("','",$data));
$sql = "INSERT INTO $table ($field) VALUES ('$isi_field');";
$result = mysql_query($sql);

}
function update_table()
{


}
function delete_table()
{

}
function select_table($table="")
{
$sql_select="select * from $table";
$result = mysql_query($sql_select);


return $result;

}

?>